package shenlong.android.motorkeeper.lock.fragment;

import shenlong.android.motorkeeper.lock.MainActivity;
import shenlong.android.motorkeeper.lock.common.Constant;
import shenlong.android.motorkeeper.R;
import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class ConfigurationFragment extends Fragment{
	public ConfigurationFragment() {
    }
	public static ConfigurationFragment newInstance(int sectionNumber) {
		ConfigurationFragment fragment = new ConfigurationFragment();
        Bundle args = new Bundle();
        args.putInt(Constant.ARG_SECTION_NUMBER, sectionNumber);
        fragment.setArguments(args);
        return fragment;
    }
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
    	
        View rootView = inflater.inflate(R.layout.fragment_configuration, container, false);
        return rootView;
    }

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        ((MainActivity) activity).onSectionAttached(
                getArguments().getInt(Constant.ARG_SECTION_NUMBER));
    }
}
